from __future__ import absolute_import
from celery import shared_task
import time


@shared_task
def add(x, y):
    """
    异步任务
    :param x:
    :param y:
    :return:
    """
    print('{} + {} = {}'.format(x, y, x + y))
    return x + y


@shared_task
def test(arg):
    print(arg)
